/**
  * Copyright (c) CSIRO Australia, 2009
  *
  * @author $Author: jia020 $
  * @version $Id: PDQueryServiceAsync.java 643 2009-05-20 00:20:55Z jia020 $
  */
package au.csiro.nt.pdsp.client;

import java.util.Map;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * The async counterpart of <code>PDQueryService</code>.
 */
public interface PDQueryServiceAsync {
	void queryServer(Map formData, AsyncCallback<String> callback);
	void saveTask(String userid,String taskBase64,String description,AsyncCallback<Boolean> callback);
	void getMyTasks(String userid,AsyncCallback<String> callback);
	void getMyWorkflows(int taskid,AsyncCallback<String> callback);	
	void getUnreviewedWorkflows(AsyncCallback<String> callback);
	void getWorkflows(int type,int param,AsyncCallback<String> callback);			
	void reviewWorkflow(int workflowid, AsyncCallback<Boolean> asyncCallback);	
	void login(String username,String password,AsyncCallback<String> callback);
	void getMyMessages(String userid, AsyncCallback<String> asyncCallback);
	void sendMessage(int imsID, String message,AsyncCallback<Boolean> asyncCallback);	
	void subscribePDSP(String username,boolean subscribe,AsyncCallback<Boolean> asyncCallback);	
}
